package org.jeecg.modules.online.auth.service;

import org.jeecg.common.system.vo.SysPermissionDataRuleModel;
import org.jeecg.modules.online.auth.entity.OnlAuthData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: onl_auth_data
 * @Author: jeecg-boot
 * @Date:   2020-07-16
 * @Version: V1.0
 */
public interface IOnlAuthDataService extends IService<OnlAuthData> {

    /**
     * 删除 需要删除关联表
     * @param id
     */
    void deleteOne(String id);


    /**
     * 查询 用户的online数据规则
     * @param userId
     * @param cgformId
     * @return
     */
    List<SysPermissionDataRuleModel> queryUserOnlineAuthData(String userId, String cgformId);

}
